var app = angular.module("myApp");
app.directive("menu",function(){
    return {
        restrict:"E",
        replace:true,
        templateUrl:"directives/menu/menu.html",
        compile:function(element,attributes){
            return {
                pre:function preLink(scope, element, attributes){
                   scope.data ={
                       title: '后台管理',
                       menus: [
                           {
                               ico:"glyphicon glyphicon-info-sign",
                               title: "其它信息维护",
                               items: [
                                   {
                                       title: "验证码",
                                       url:"handVCodeList"  }
                               ]
                           },
                           {
                               ico:"glyphicon glyphicon-user",
                               title: "客户管理",
                               items: [
                                   {title: "用户信息", url: "person"},
                                   {title: "黑白名单", url: "blackli    st"}
                               ]
                           },
                           {
                               ico:"glyphicon glyphicon-shopping-cart",
                               title:"订单管理",
                               items:[
                                   {
                                       title:"合约机业务"
                                   }
                               ]
                           },
                           {
                               ico:"glyphicon glyphicon-globe",
                               title:"合作方查询",
                               items: [
                                   {title: "机构查询"},
                                   {title: "店员查询"}
                               ]
                           },
                           {
                               ico:"glyphicon glyphicon-record",
                               title:"数据分析",
                               items:[
                                   {
                                       title:"业务报表"
                                   }
                               ]
                           }
                       ]
                   };
                },
                post:function postLink(scope, element, attributes) {
                    
                }
            };
        }
    }
})